.product-grid-item {
  margin-bottom: 16px;

  @media (min-width: 992px) {
    margin-bottom: 30px;

    &:hover {
      .product-bottom-btns {
        transform: translateY(0) !important;
      }

      .product-price {
        transform: translateY(100%);
      }
    }
  }

  .image {
    position: relative;
    overflow: hidden;
    border-radius: 6px;

    .cancel-favorite {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background-color: #fff;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 15px;
      color: #b00101;
      box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
      cursor: pointer;

      &:hover {
        color: #fff;
        background-color: #b00101;
      }
    }
  }

  .product-item-info {
    text-align: center;

    .product-name {
      font-size: 1rem;
      margin-top: 1rem;
      margin-bottom: .5rem;
      font-weight: bold;
      color: #222;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;

      a {
        color: inherit;

        &:hover {
          text-decoration: underline;
          color: $primary;
        }
      }
    }

    .product-bottom {
      position: relative;
      overflow: hidden;
    }

    .product-bottom-btns {
      transform: translateY(-100%);
      transition: transform .3s;

      .btn-add-cart {
        font-weight: bold;
        font-size: 16px;
        text-decoration: underline;
        color: $primary;
      }
    }

    .product-price {
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 0;
      width: 100%;
      transition: transform 0.3s;

      .price-new {
        font-size: 1rem;
        font-weight: bold;
        color: $price;
      }

      .price-old {
        font-size: .9rem;
        color: #768088;
        text-decoration: line-through;
        margin-left: 10px;
        margin-right: 10px;
      }
    }
  }
}

.list {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;

  .image {
    flex: 0 0 200px;
    margin-bottom: 0;
    transition: all 0.3s ease-in-out;
  }

  .product-item-info {
    flex: 0.2;
    padding-left: 20px;
    padding-top: 10px;
    text-align: left;

    .sub-product-title{
      margin-top: 10px;
      margin-bottom: 20px;
    }

    .product-bottom {
      margin-top: 10px;
      margin-bottom: 20px;
    }

    .product-price {
      text-align: left;
      justify-content: flex-start;
      .price-old {
        margin-left: 0;
      }
    }

    .add-wishlist{
      margin-top: 10px;
      margin-bottom: 20px;
    }
  }
}